import { getlink } from "@/api/getapi.js"
export let systemM = {
    state: {
        arrList: [],
    },
    mutations: {
        arrList(state, payload) {
            state.arrList = payload
        },
    },
    actions: {
        link(context, payload) {
            // 发送异步操作 
            getlink(payload.url).then((ok) => {
                console.log(ok.data)
                context.commit("arrList", ok.data)
            })
        },
    }
}